Package-level declarations
Types
Pluggable codec for Draco mesh compression (KHR_draco_mesh_compression glTF extension).
Result of a successful DracoDecoder.decode call. Plain copy-out arrays in the same shape GltfReader would have built from a non-compressed primitive — the rest of the pipeline (interleave + GPU upload + texture binding) treats Draco and non-Draco primitives identically.
Process-level registry of pluggable codecs the glTF parser consults when it encounters compressed payloads. Apps wire concrete implementations once at startup (typically in their entry-point's first lines); GltfReader reads the registry on the streaming hot path without per-call plumbing.
glTF material — PBR base color factor + optional base color texture. Phase 2 ignores metallic/roughness/normal/emissive — they're recorded by the reader as defaults for future expansion without consumer churn.
In-memory model of a parsed glTF 2.0 asset, produced by GltfReader. Carries enough of the spec to drive textured + lit mesh rendering for 3D Tiles content; not a full glTF compliance representation.
One mesh primitive (one draw call's worth of geometry). Attribute arrays are tightly packed: positions are vec3, normals vec3, texCoords vec2, colors vec3 or vec4. Indices are either uint16 (most cases) or uint32 (large b3dms); exactly one will be non-null.
One mesh primitive instance — a primitiveIndex under GltfModel.meshes pre-composed with the node's world transform. Consumers iterate this list and don't need to walk the original node tree.
Parses a glTF 2.0 JSON document + optional BIN buffer into a GltfModel suitable for driving textured + lit mesh draws. Built for the b3dm / i3dm / cmpt content paths plus the 3D Tiles 1.1 3DTILES_content_gltf extension; reads enough of the spec for photogrammetry-style assets and ignores features the renderer doesn't yet consume (skinning, morph targets, animations, KHR_draco compression, KTX2 textures).
Pluggable codec for KTX2 / Basis-Universal texture compression (KHR_texture_basisu glTF extension).
Result of a successful Ktx2Decoder.decode call. RGBA8888 pixel buffer plus width and height — the rest of the texture pipeline (mipmap generation, GL upload) treats KTX2- sourced and non-KTX2-sourced images identically.
Pluggable codec for the EXT_meshopt_compression glTF extension.